package com.wangsb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @Author: shenbing.wang
 * @CreateDate: 2021/2/2 23:27
 * @Version: 1.0
 * @Description:
 */
@Controller
@RequestMapping("/path")
public class PathVariableController {


    @RequestMapping("/user/{id}")
    public String path(@PathVariable Integer id) {
        System.out.println("id = " + id);
        return "/index.jsp";
    }
}

